package org.ch02.test00.demo10;

import java.time.LocalDateTime;

/**
 * @author ZQX
 * @date 2025-03-24
 */
public class MainTest02 {
    public static void main(String[] args) {
        Staffs bean01 = new Staffs() ;
        bean01.setId(6);
        bean01.setName("王八");
        bean01.setAge(22);
        bean01.setPhone("110");
        bean01.setStaPos("项目经理");
        bean01.setAddTime(LocalDateTime.now());
        bean01.setUpdateTime(LocalDateTime.now());

        Staffs bean02 = new Staffs() ;

        BeanUtil.copyProperties(bean01,bean02);

        System.out.println(bean02);


    }
}
